#ifndef TEXTEDIT_H
#define TEXTEDIT_H

#include <QDialog>
#include <QFile>
#include <QFileDialog>
#include <QTextStream>
#include <QMessageBox>
#include "ui_textedit.h"


class TextEdit : public QDialog , public Ui::TextEdit
{
    Q_OBJECT
    
public:
    explicit TextEdit(QWidget *parent = 0);

public slots:
    bool newfile();
    bool openfile();
    bool savefile();
    bool findreplace();
    void findtext();
    void replacetext();
    bool batchreplace();
    bool startbatch();
    bool setOkEndable(QString str);
    bool fileBrowser();

    
private:
    bool findreplacetext(bool i);
};



#endif // TEXTEDIT_H
